package com.neuedu.his.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.neuedu.his.entity.PrescriptionDetailed;
import com.neuedu.his.mapper.PrescriptionDetailedMapper;

@Service
@Transactional
public class PrescriptionDetailedServiceImpl implements PrescriptionDetailedService{
	
	@Autowired
	private PrescriptionDetailedMapper dao;
	
	@Override
	public List<PrescriptionDetailed> selectAll(PrescriptionDetailed u) {
		return dao.selectAll(u);
	}

	@Override
	public List<PrescriptionDetailed> selectById(PrescriptionDetailed u) {
		return dao.selectById(u);
	}
	
	@Override
	public List<PrescriptionDetailed> prescriptionselectById(PrescriptionDetailed u){
		return dao.prescriptionselectById(u);
	}
	
	@Override
	public int add(PrescriptionDetailed u) {
		return dao.add(u);
	}

	@Override
	public int delete(PrescriptionDetailed u) {
		return dao.delete(u);
	}
}
